﻿using CoachingOrganizer.Database;
using SQLite.Net.Platform.WinRT;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Windows.Storage;

namespace CoachingOrganizer.ClientAdapters.WinPhone.LocalStorage
{
    public class WinPhoneDbManager : DbManagerBase
    {
        protected override SQLite.Net.Interop.ISQLitePlatform GetPlatform()
        {
            return new SQLitePlatformWinRT();
        }

        protected override string GetDataFolder()
        {
            string folder = ApplicationData.Current.LocalFolder.Path;
            return System.IO.Path.Combine(folder, "coaching.db");
        }
    }
}
